-- GENERATED SPELL FOR [Arcane Reaver] --


function spell0_16339(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(31390,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16339', 2000, 1)
end

function Sorts_16339(pUnit, Event)
local choix_sorts_16339 = math.random(0, 0)
if choix_sorts_16339 == 0 then
pUnit:RegisterEvent('spell0_16339', 1, 1)
end
end

function mob16339_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16339', math.random(1500, 3000), 1)
end

function mob16339_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16339_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16339_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16339, 1, 'mob16339_Action')
RegisterUnitEvent(16339, 2, 'mob16339_Leave')
RegisterUnitEvent(16339, 3, 'mob16339_Kill')
RegisterUnitEvent(16339, 4, 'mob16339_Die')
